package com.guohui.demo.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.guohui.common.controller.BaseController;
import com.guohui.demo.service.IndexService;

@Controller
public class IndexController extends BaseController{

	@Autowired
	private IndexService indexService;
	
	@RequestMapping(value={"","/","index"},method={RequestMethod.GET})
	public String index(ModelMap model){
		String msg = this.indexService.welcome();
		model.put("msg", msg);
		return "index";
	}
}
